package com.example.demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@TableName("author")
@Data
public class Author {
    @TableId(type = IdType.AUTO)
    private Integer authorid;
    private String authorname;
    private Integer sum;

    public Author() {
    }

    public Author(Integer authorid, String authorname, Integer sum) {
        this.authorid = authorid;
        this.authorname = authorname;
        this.sum = sum;
    }

    public Integer getAuthorid() {
        return authorid;
    }

    public void setAuthorid(Integer authorid) {
        this.authorid = authorid;
    }

    public String getAuthorname() {
        return authorname;
    }

    public void setAuthorname(String authorname) {
        this.authorname = authorname;
    }

    public Integer getSum() {
        return sum;
    }

    public void setSum(Integer sum) {
        this.sum = sum;
    }
}